var app = getApp()
Page({
  data: {
    user_id: '',
    class_record: [],
    coach_id: '',
    order_id: '',
    visible1: false
  },

  onLoad: function () {
    this.coachByClass()
  },
  coachByClass() {
    let that = this
    wx.request({
      url: app.url + 'weiapp/api/MyCoachByClass',
      data: {
        PHPSESSID: wx.getStorageSync('PHPSESSID')
      },
      success: function (res) {
        console.log(res.data)
        that.setData({
          class_record: res.data.venue_to_js_orders
        })
      }
    })
  }


});